package com.ophiux.pay.demo;

import cn.hutool.json.JSONUtil;

/**
 * @desc:
 *  <T extends Vehicle & Thing>  需要T继承Vehicle 实现接口 Thing
 * @author: hhl
 * @date：2023/11/21 15:48
 */
public class VehiclePrinter3<T extends Vehicle & Thing> {

    T content;


    VehiclePrinter3(T content) {
        this.content = content;
    }

    public void print(){
        System.out.println(JSONUtil.toJsonStr(content));
    }
}
